<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head> 
<body>
    <script type="text/javascript">
        /*转义字符*/
        var str = "abcdef";
        var str1 = 'abcd"ef';
        var str2 = "abcd\"ef"; //转义符号，把反斜杠后面的字符强制变成文本
        var str3 = "abcd\\ef";
    
        var str4 = "abcd\nef"; //换行

        // \r 为行结束符 windows里面是\r\n linux里面是\n  \t 制表符缩进 table的缩写，tab的缩写
        
        var str5 = "abcd\tef"; //一个缩进等于四个空格
    
     
        var str6 = "adjlashda\
        jklshda\
        kjsdhk"; // 通过转义字符实现多行书写，但是本质是单行字符串



        var str7 = "adjlashda" +
        "jklshda" +
        "kjsdhk"; // 通过加号拼接实现多行字符串

        var str8 = `sdasdasdasd
        fasfafasfa
        fasfafafsaf`

    </script>
</body>
</html>